
// 登录
bangkeapp.controller('bangkelogin', ["$scope", "loginService",
    function($scope, loginService) {
		// 跳转到修改查看会员信息界面
		$scope.tologin = function(){
			loginService.login($scope.login).then(function(result) {
	            var data = result;
	            if(data.Response.Header.ResponseCode == "M"){
	            		// 保存成功之后
	            		console.log(angular.toJson(data.Response));
	            		alert(angular.toJson(data.Response));
					// window.location.href = "index.html#/bangke/memberhome/" + data.Response.Body.Response;
	            } else {
	            		alert(data.Response.Header.MsgList[0].MsgContent);
	            }
	        }, function(error) {
	            console.log("error!");
	        }, function(progress) {
	
	        });
		}
    }
]);